package com.castle.fortress.admin.member.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import java.util.Date;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
 * 会员评论表 实体类
 *
 * @author castle
 * @since 2023-02-20
 */
@Data
@ApiModel(value = "memberComment对象", description = "会员评论表")
public class MemberCommentDto implements Serializable {
	private static final long serialVersionUID = 1L;
	@JsonSerialize(using = ToStringSerializer.class)
	@ApiModelProperty(value = "id")
	@JsonProperty("id")
	private Long id;
	@ApiModelProperty(value = "00 课程")
	@JsonProperty("commentType")
	private String commentType;
	@JsonSerialize(using = ToStringSerializer.class)
	@ApiModelProperty(value = "会员ID")
	@JsonProperty("memberId")
	private Long memberId;
	@ApiModelProperty(value = "是否匿名")
	@JsonProperty("isAnonymity")
	private Integer isAnonymity;
	@JsonSerialize(using = ToStringSerializer.class)
	@ApiModelProperty(value = "评论主体")
	@JsonProperty("targetId")
	private Long targetId;
	@JsonSerialize(using = ToStringSerializer.class)
	@ApiModelProperty(value = "评论的上级")
	@JsonProperty("parentId")
	private Long parentId;
	@ApiModelProperty(value = "所有评论主体")
	@JsonProperty("parents")
	private String parents;
	@ApiModelProperty(value = "评论内容")
	@JsonProperty("content")
	private String content;
	@DateTimeFormat(
		pattern = "yyyy-MM-dd HH:mm:ss"
	)
	@JsonFormat(
		pattern = "yyyy-MM-dd HH:mm:ss"
	)
	@ApiModelProperty(value = "评论时间")
	@JsonProperty("commentTime")
	private Date commentTime;
	@ApiModelProperty(value = "点赞数")
	@JsonProperty("thumbsUpNum")
	private Integer thumbsUpNum;
	@JsonProperty("children")
	private List<MemberCommentDto> children;
	@ApiModelProperty(value = "昵称")
	@JsonProperty("nickName")
	private String nickName;
	@ApiModelProperty(value = "头像")
	@JsonProperty("avatar")
	private String avatar;
	@ApiModelProperty(value = "是否点赞")
	@JsonProperty("isThumbsUp")
	private Boolean isThumbsUp=false;
	//默认是正序： 00 倒序
	@ApiModelProperty(value = "排序标识")
	@JsonProperty("sortFlag")
	private String sortFlag;

}
